<?php
/*
 * @Author: 李志刚
 * @CopyRight: 2020-2030 衡水山木枝技术服务有限公司
 * @Date: 2021-10-19 10:16:59
 * @Description: 门店基础信息表
 * @LastEditors: 李志刚
 * @LastEditTime: 2021-10-20 09:11:28
 * @FilePath: /归档/user/2021_10_19_101659_create_shop.php
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateShop extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shops', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->id();
            $table->string('title', 30)->comment('门店名称');
            $table->char('phone',11)->comment('登陆手机号');
            $table->boolean('status')->default(0)->comment('状态:1正常/0待审核/-1驳回');
            $table->tinyInteger('del_flag')->default(0)->comment('删除状态（1删除 0正常）');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shops');
    }
}
